﻿using EaseDapper.Interface;

namespace EaseDapper
{
    public class MySqlExpressionFactory : IAbstractFactory
    {
        public IQueryExpressions<T> CreatQuery<T>() where T : class
        {
            return InstanceFactory.GetQueryExpressions<T, IQueryExpressions<T>>();
        }

        public IDeleteExpressions<T> CreatDelete<T>() where T : class
        {
            return InstanceFactory.GetDeleteExpressions<T, IDeleteExpressions<T>>();
        }

        public IUpdateExpressions<T> CreatUpdate<T>() where T : class
        {
            return InstanceFactory.GetUpdateExpressions<T, IUpdateExpressions<T>>();
        }
    }
}
